package router

import (
	"batbat-backend/app/api"
	"batbat-backend/app/service"
	"github.com/gogf/gf/frame/g"
	"github.com/gogf/gf/net/ghttp"
)

// 会话接口路由
func init() {
	g.Server().Group("/session", func(group *ghttp.RouterGroup) {
		group.GET("/", api.Session.IsLogin).Middleware(service.Middleware.Login)
		group.POST("/", api.Session.Login)
	})
}
